﻿using System;
using System.Runtime.Serialization;

namespace EDTS.Model.Weixin
{
    [DataContract]
    public class WxAppModel:MBase
    {
        [Model]
        [DataMember]
        public string AppName { get; set; }
        [Model]
        [DataMember]
        public string CorpID { get; set; }
        [Model]
        [DataMember]
        public string Secret { get; set; }
        [Model]
        [DataMember]
        public string Token { get; set; }
        [Model]
        [DataMember]
        public string EncodingAESKey { get; set; }
        [Model(ConvertType=AttributeType.IgnoreUpdate)]
        [DataMember]
        public string AccessToken { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public Nullable<System.DateTime> AccessExpired { get; set; }
    }

    [DataContract]
    public class WxAppCollection : ModelCollectionBase<WxAppModel> { }
}
